<?php
/**
 * Created by PhpStorm.
 * User: zhouxin
 * Date: 2018/9/29
 * Time: 20:07
 */

include "config.php";

if(isset($_REQUEST["telphone"]))
{
    $UTELPHONE=$_REQUEST["telphone"];
    $sqlSelect="SELECT * FROM userinfo WHERE user_telphone=?;";
    $stmt=$conn->prepare($sqlSelect);
    $stmt->bind_param("s",$UTELPHONE);
    $stmt->execute();
    $res=$stmt->get_result();
    if($res->num_rows>=1)
        print_r("false");
    else
        print_r("true");

}